package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 备件申请记录表
 * </p>
 *
 * @author maoguanjun
 * @since 2022-11-11
 */
@Getter
@Setter
  @TableName("mes_spare_apply_records")
@ApiModel(value = "MesSpareApplyRecords对象", description = "备件申请记录表")
public class MesSpareApplyRecords implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("申请类型（0：手动添加1：维修单2：保养单）")
      private Integer applyType;

      @ApiModelProperty("维修单id")
      private Long repairId;

      @ApiModelProperty("维修单编号")
      private String repairNum;

      @ApiModelProperty("备件id")
      private Long spareId;

      @ApiModelProperty("备件编码")
      private String spareCode;

      @ApiModelProperty("备件类型")
      private Long spareType;

      @ApiModelProperty("备件名称")
      private String spareName;

      @ApiModelProperty("备件规格")
      private String spareModel;

      @ApiModelProperty("计量单位")
      private String spareUnit;

      @ApiModelProperty("申请部门")
      private Long applyDept;

    private BigDecimal applyNum;

      @ApiModelProperty("申请说明")
      private String description;

      @ApiModelProperty("申请人")
      private Long applyPerson;

      @ApiModelProperty("申请日期")
      private LocalDateTime applyTime;

      @ApiModelProperty("审核状态（0：待审1：已审2：审核中）")
      private Integer auditStatus;

      @ApiModelProperty("审核人")
      private Long approver;

      @ApiModelProperty("审核时间")
      private LocalDateTime approveTime;


}
